//日常巡查
import React, { useState } from 'react'
//导入组件
import Index from '../../component/inspection/index'

//导入搜索组件
import Seach from '../../component/inspection/Search'

const Riinspection: React.FC = () => {

    const [time, setTime] = useState<[string, string]>(['', ''])
    const [state, setState] = useState<string>('')
    const onchange = (e: [string, string], b: string) => {
        setTime(e)
        setState(b)
    }

    return (
        <>
            <Seach onChange={onchange} />
            <Index timer={time} State={state}></Index>
        </>
    )
}

export default Riinspection